using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using WebAPI.domain.Entity;

namespace WebAPI.infrastructure.Db
{
    // public class SqlDbContext : DbContext
    // {
    //     private readonly string _conString = "server=.;database=Soft1Demo;uid=sa;pwd=123456;";
    //     protected override void OnConfiguring(DbContextOptionsBuilder builder)
    //     {
    //         builder.UseSqlServer(_conString);
    //     }

    //     public DbSet<Users>? users { get; set; }
    //     public DbSet<UserRoles>? UserRoles { get; set; }
    //     public DbSet<Roles>? Roles { get; set; }

    // }
    public class SqlDbContext : DbContext
    {
        public SqlDbContext(DbContextOptions<SqlDbContext> options) : base(options)
        {
        }

        public DbSet<Users>? Users { get; set; }
        public DbSet<UserRoles>? UserRoles { get; set; }
        public DbSet<Roles>? Roles { get; set; }

    }
}